package com.tanhua.server.exceotion;

import com.tanhua.model.domain.db.ErrorResult;
import lombok.Data;

/**
 * @author maorf
 * @version 1.0
 */
@Data
public class BusinessException extends RuntimeException {

    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }
}
